// AWTBorderLayout.h: interface for the AWTBorderLayout class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTBORDERLAYOUT_H__CE760846_3E56_11D2_A3F0_006097A44215__INCLUDED_)
#define AFX_AWTBORDERLAYOUT_H__CE760846_3E56_11D2_A3F0_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTLayoutManager.h"

class AFX_EXT_CLASS AWTBorderLayout : public AWTLayout,
	                      public AWTLayoutManager
{
DECLARE_DYNAMIC(AWTBorderLayout)
public:
	AWTBorderLayout();
	AWTBorderLayout(int hgap, int vgap);
	virtual ~AWTBorderLayout();

	virtual AWTLayoutManager* getLayoutManager()
		{return static_cast<AWTLayoutManager*>(this);}
	
	//interface AWTLayoutManager
	void addLayoutComponent(CString* name, AWTComponent* comp);
	virtual void addLayoutComponent(AWTComponent* comp, AWTObject* constraints){};
	void removeLayoutComponent(AWTComponent* comp);
	CSize preferredLayoutSize(AWTContainer* target);
	CSize minimumLayoutSize(AWTContainer* target);
	virtual void layoutContainer(AWTContainer* target);
	void destroy()
		{delete this;}

protected:
  int m_hgap;
  int m_vgap;

	AWTComponent* m_north;
	AWTComponent* m_west;
	AWTComponent* m_east;
	AWTComponent* m_south;
	AWTComponent* m_center;



};

#endif // !defined(AFX_AWTBORDERLAYOUT_H__CE760846_3E56_11D2_A3F0_006097A44215__INCLUDED_)
